<admintpl file="header" />

<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li class="active">
				<a href="#">文件列表</a>
			</li>
			<li>
				<a href="{:sp_plugin_url('File://AdminIndex/add')}?dir={$_GET['dir']}">在当前目录下添加文件</a>
			</li>
		</ul>
		<div class="common-form">

			<style>
				.table td {
					font-size: 14px;
					line-height: 20px;
				}
				
				.page a {
					float: left;
					padding: 4px 12px;
					line-height: 20px;
					text-decoration: none;
					background-color: #fff;
					border: 1px solid #ddd;
					border-left-width: 0;
				}
				
				.page span {
					float: left;
					padding: 4px 12px;
					line-height: 20px;
					text-decoration: none;
					background-color: #fff;
					border: 1px solid #ddd;
				}
				
				.page .prev {
					float: left;
					padding: 4px 12px;
					line-height: 20px;
					text-decoration: none;
					background-color: #fff;
					border: 1px solid #ddd;
				}
			</style>

			<div class="table_list">

				<table width="100%" class="table table-hover">
					<thead>
						<tr>
							<th width="40"> 文件列表</th>
							<th width="200">操作</th>

						</tr>
						<tr>
							<td style="color: #A5A5A5;">当前目录地址: {$path_now}</td>
							<td></td>
						</tr>
					</thead>
					<tbody>
						<notempty name="Think.get.dir">
						    <tr>
						        <td><a href="{:sp_plugin_url('File://AdminIndex/index')}?dir={$back}"><img src="/plugins/File/View/Img/ext/dir.gif" /> 返回上一层</a></td>
						        <td></td>
						    </tr>
						</notempty>
						<foreach name="list" item="v">
							<tr>
								<if condition="$v['is_edit']">
									<td>
										<a href="{:sp_plugin_url('File://AdminIndex/edit')}?dir={$v['dir']}" data="{$v['dir']}"><img src="{$v.ext_img}" /> {$v.name}</a>
									</td>
								
									
									<td>
										<a class="btn btn-blue" href="{:sp_plugin_url('File://AdminIndex/edit')}?dir={$v['dir']}" style="background-color: #5BC0DE;">修改</a>
										<a class="AjaxConfirm btn btn-red"  href="{:sp_plugin_url('File://AdminIndex/del')}?dir={$v['dir']}" style="background-color: red;">删除</a>
									</td>
									<elseif condition="$v['ext'] == 'dir'" />
									<td>
										<a href="{:sp_plugin_url('File://AdminIndex/index')}?dir={$v['dir']}" data="{$v['dir']}"><img src="{$v.ext_img}" /> {$v.name}</a>
									</td>
									<td></td>
									<else />
									<td><img src="{$v.ext_img}" /> {$v.name}</td>
									<td>
										<a class="AjaxConfirm btn btn-red"  href="{:sp_plugin_url('File://AdminIndex/del')}?dir={$v['dir']}">删除</a>
									</td>
								</if>
							</tr>
						</foreach>

					</tbody>
				</table>

			</div>

		</div>
	</div>
	<script src="__ROOT__/Public/js/common.js?"></script>
</body>

</html>